<!DOCTYPE html>
<html lang=zh>
<head><meta name="generator" content="Hexo 3.9.0">
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="description" content="前言wecomment连接不上mlab的免费 mongo 数据库，同样也连不上腾讯云服务器的 mongo 数据库，好气呀&amp;gt;_&amp;lt;，只能花时间在 windows 上搭建一个本地 mongo 了，下面是我的踩坑历程，希望能帮到你~ 开始 下载 mongo官方网站下载地址百度云盘  提取密码：a9ca  新建data和log文件夹在安装完成后的根目录下使用cmd执行以下命令   123456m">
<meta name="keywords" content="windows,mongodb">
<meta property="og:type" content="article">
<meta property="og:title" content="window上搭建mongodb">
<meta property="og:url" content="https://andyliwr.github.io/2017/10/17/window_mongo_install/index.html">
<meta property="og:site_name" content="月光倾城的代码小屋">
<meta property="og:description" content="前言wecomment连接不上mlab的免费 mongo 数据库，同样也连不上腾讯云服务器的 mongo 数据库，好气呀&amp;gt;_&amp;lt;，只能花时间在 windows 上搭建一个本地 mongo 了，下面是我的踩坑历程，希望能帮到你~ 开始 下载 mongo官方网站下载地址百度云盘  提取密码：a9ca  新建data和log文件夹在安装完成后的根目录下使用cmd执行以下命令   123456m">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2020-01-15T06:30:09.120Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="window上搭建mongodb">
<meta name="twitter:description" content="前言wecomment连接不上mlab的免费 mongo 数据库，同样也连不上腾讯云服务器的 mongo 数据库，好气呀&amp;gt;_&amp;lt;，只能花时间在 windows 上搭建一个本地 mongo 了，下面是我的踩坑历程，希望能帮到你~ 开始 下载 mongo官方网站下载地址百度云盘  提取密码：a9ca  新建data和log文件夹在安装完成后的根目录下使用cmd执行以下命令   123456m">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
          
        
    
    <!-- title -->
    <title>window上搭建mongodb</title>
    <!-- styles -->
    <link rel="stylesheet" href="/css/style.css">
    <!-- persian styles -->
    
      <link rel="stylesheet" href="/css/rtl.css">
    
    <!-- rss -->
    
    
</head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">首页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/others/">其他文章</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/2017/10/28/python_scrapy_rumen/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/2017/10/17/sublime_sftp_txy/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">上一篇</span>
      <span id="i-next" class="info" style="display:none;">下一篇</span>
      <span id="i-top" class="info" style="display:none;">返回顶部</span>
      <span id="i-share" class="info" style="display:none;">分享文章</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=https://andyliwr.github.io/2017/10/17/window_mongo_install/"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&text=window上搭建mongodb"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&is_video=false&description=window上搭建mongodb"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=window上搭建mongodb&body=Check out this article: https://andyliwr.github.io/2017/10/17/window_mongo_install/"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&name=window上搭建mongodb&description="><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#前言"><span class="toc-number">1.</span> <span class="toc-text">前言</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#开始"><span class="toc-number">2.</span> <span class="toc-text">开始</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#如何创建表和用户"><span class="toc-number">3.</span> <span class="toc-text">如何创建表和用户</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#常见问题"><span class="toc-number">4.</span> <span class="toc-text">常见问题</span></a></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        window上搭建mongodb
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">月光倾城的代码小屋</span>
      </span>
      
    <div class="postdate">
        <time datetime="2017-10-17T22:17:00.000Z" itemprop="datePublished">2017-10-17</time>
    </div>


      

      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link" href="/tags/mongodb/">mongodb</a>, <a class="tag-link" href="/tags/windows/">windows</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h4 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h4><p><code>wecomment</code>连接不上<a href="http://mlab.com/" target="_blank" rel="noopener"><code>mlab</code></a>的免费 mongo 数据库，同样也连不上腾讯云服务器的 mongo 数据库，好气呀&gt;_&lt;，只能花时间在 windows 上搭建一个本地 mongo 了，下面是我的踩坑历程，希望能帮到你~</p>
<h4 id="开始"><a href="#开始" class="headerlink" title="开始"></a>开始</h4><ol>
<li><p>下载 mongo<br><a href="https://www.mongodb.com/download-center?jmp=nav#community" target="_blank" rel="noopener">官方网站下载地址</a><br><a href="https://pan.baidu.com/s/1eSaTAb4" target="_blank" rel="noopener">百度云盘 </a> 提取密码：<code>a9ca</code></p>
</li>
<li><p>新建<code>data</code>和<code>log</code>文件夹在安装完成后的根目录下使用<code>cmd</code>执行以下命令</p>
</li>
</ol>
<figure class="highlight bat"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">mkdir</span> data</span><br><span class="line"><span class="built_in">cd</span> data &amp;&amp; <span class="built_in">mkdir</span> db</span><br><span class="line"><span class="built_in">mkdir</span> log</span><br><span class="line"><span class="built_in">cd</span> log</span><br><span class="line"># 创建mongo.log日志文件</span><br><span class="line"><span class="built_in">type</span> <span class="built_in">nul</span>&gt;mongo.log</span><br></pre></td></tr></table></figure>
<ol start="3">
<li>将 mongo 设置为系统服务以管理员身份运行<code>cmd</code>，并执行以下命令：</li>
</ol>
<figure class="highlight bat"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> D:\mongo\bin</span><br><span class="line"><span class="function">D:</span></span><br><span class="line"><span class="function"><span class="title">mongod.exe</span> --<span class="title">bind_ip</span> <span class="title">localhost</span> --<span class="title">logpath</span> "<span class="title">D</span>:\<span class="title">mongo</span>\<span class="title">log</span>\<span class="title">mongo.log</span>" --<span class="title">logappend</span> --<span class="title">dbpath</span> "<span class="title">D</span>:\<span class="title">mongo</span>\<span class="title">data</span>\<span class="title">db</span>" --<span class="title">port</span> 27017 --<span class="title">auth</span> --<span class="title">serviceName</span> "<span class="title">mongodb</span>" --<span class="title">serviceDisplayName</span> "<span class="title">mongodb</span>" --<span class="title">install</span></span></span><br></pre></td></tr></table></figure>
<p>然后使用小娜搜索“服务”，在本地服务列表中找到刚才新建的服务<code>“mongo”</code>, 右击点击“启动”就好了。最后在 cmd 中输入<code>mongo</code>就能进入<code>mongo</code>命令行模式了（注意如果 mongo 没有设置系统环境变量，请自行添加，或者每次切换到 mongo 的执行目录—<code>D:\mongo\bin</code>执行命令）。</p>
<h4 id="如何创建表和用户"><a href="#如何创建表和用户" class="headerlink" title="如何创建表和用户"></a>如何创建表和用户</h4><p>在 mongo 命令行中执行以下命令</p>
<figure class="highlight bat"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">use wecomment</span><br><span class="line">db.test.insert(&#123;"name": "xxx"&#125;)</span><br><span class="line"># 查看刚才常见的数据库</span><br><span class="line">show dbs</span><br><span class="line"># 创建数据库的用户</span><br><span class="line">use wecomment</span><br><span class="line">db.createUser(&#123;</span><br><span class="line">	"user": "admin",</span><br><span class="line">	"pwd": "<span class="number">123456</span>",</span><br><span class="line">	"roles": [&#123;role: "readWrite", db: "wecomment"&#125;]</span><br><span class="line">&#125;)</span><br><span class="line"></span><br><span class="line"># 使用auth命令来检测用户是否添加成功，返回<span class="number">1</span>表示添加成功</span><br><span class="line">db.auth("admin", "<span class="number">123456</span>")</span><br></pre></td></tr></table></figure>
<h4 id="常见问题"><a href="#常见问题" class="headerlink" title="常见问题"></a>常见问题</h4><ol>
<li>在安装完<code>mongo</code>启动 koa 项目的时候报<code>Authentication failed</code>错误</li>
</ol>
<p>这是由于<code>mongodb</code>加入了<code>SCRAM-SHA-1</code>的校验方式，需要第三方工具配合进行验证。修复的方法如下：关闭刚才创建的<code>mongodb</code>的系统服务，在 cmd 下使用<code>mongodb.exe</code>启动<code>mongo</code></p>
<figure class="highlight taggerscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd D:<span class="symbol">\m</span>ongo<span class="symbol">\b</span>in</span><br><span class="line">mongodb.exe --dbpath D:<span class="symbol">\m</span>ongo<span class="symbol">\d</span>ata<span class="symbol">\d</span>b --logpath D:<span class="symbol">\m</span>ongo<span class="symbol">\l</span>og<span class="symbol">\m</span>ongo.log</span><br></pre></td></tr></table></figure>
<p>注意这里不要加上<code>--auth</code>参数，因为接下来的操作必须在关闭认证的情况下进行。</p>
<figure class="highlight pgsql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"># 进入mongo命令行</span><br><span class="line">mongo.exe</span><br><span class="line"># mongo shell命令</span><br><span class="line">use <span class="keyword">admin</span></span><br><span class="line">var schema = db.<span class="keyword">system</span>.<span class="keyword">version</span>.findOne(&#123;"_id" : "authSchema"&#125;)</span><br><span class="line"><span class="keyword">schema</span>.currentVersion = <span class="number">3</span></span><br><span class="line">db.<span class="keyword">system</span>.<span class="keyword">version</span>.save(<span class="keyword">schema</span>)</span><br></pre></td></tr></table></figure>
<p>现在已经成功将<code>system.version</code>文档里面的<code>authSchema</code>版本修改为 3。接下来删除原来创建的用户并重建它们</p>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-tag">use</span> <span class="selector-tag">admin</span></span><br><span class="line"><span class="selector-tag">db</span><span class="selector-class">.system</span><span class="selector-class">.user</span><span class="selector-class">.find</span>()</span><br><span class="line"><span class="selector-tag">db</span><span class="selector-class">.system</span><span class="selector-class">.user</span><span class="selector-class">.remove</span>(&#123;<span class="attribute">user</span>: <span class="string">"admin"</span>&#125;)</span><br></pre></td></tr></table></figure>
<p>最后关闭之前开启的未认证的<code>mongo</code>进程，重启系统<code>mongodb</code>进程，然后再试试能否连接上<code>mongo</code>。</p>

  </div>
  <div class="statement">
    <hr>  
    1. 如果本文帮到了您，不妨点一下右上角的”<i class="fas fa-share-alt"></i>“按钮。<br>
    2. 除非注明，本博文章均为原创，转载请以链接形式标明本文地址。<br>
    3. 如果你有任何疑问，欢迎发送邮件到我的邮箱<a href="mailto:andyliwr@outlook.com">andyliwr@outlook.com<br>
  </div>
</article>


    <div class="blog-post-comments">
        <div id="gitalk_thread">
            <noscript>加载评论需要在浏览器启用 JavaScript 脚本支持。</noscript>
        </div>
    </div>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">首页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/others/">其他文章</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#前言"><span class="toc-number">1.</span> <span class="toc-text">前言</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#开始"><span class="toc-number">2.</span> <span class="toc-text">开始</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#如何创建表和用户"><span class="toc-number">3.</span> <span class="toc-text">如何创建表和用户</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#常见问题"><span class="toc-number">4.</span> <span class="toc-text">常见问题</span></a></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=https://andyliwr.github.io/2017/10/17/window_mongo_install/"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&text=window上搭建mongodb"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&is_video=false&description=window上搭建mongodb"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=window上搭建mongodb&body=Check out this article: https://andyliwr.github.io/2017/10/17/window_mongo_install/"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&title=window上搭建mongodb"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=https://andyliwr.github.io/2017/10/17/window_mongo_install/&name=window上搭建mongodb&description="><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> 菜单</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> 目录</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> 分享</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> 返回顶部</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy; 2020 Dikang Li
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">首页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/others/">其他文章</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
</body>
</html>
<!-- styles -->
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">
<link rel="stylesheet" href="/lib/fancybox/jquery.fancybox.css">

<link rel="stylesheet" href="https://file.lantingshucheng.com/blog/v3/static/styles/gitalk.css">


<!-- jquery -->
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>
<script src="/lib/fancybox/jquery.fancybox.pack.js"></script>

<script type="text/javascript" src="https://file.lantingshucheng.com/blog/v3/static/scripts/md5.js"></script>
<script type="text/javascript" src="https://file.lantingshucheng.com/blog/v3/static/scripts/gitalk.min.js"></script>

<script src="/js/main.js"></script>
<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

    <script type="text/javascript">
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?7851ca7a86be957be994acb77639a5be";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

<!-- Disqus Comments -->


  <script type="text/javascript">
    window.onload = function(){
      if (window.location.href.indexOf('andyliwr.github.io') > -1) {
        var gitalk = new Gitalk({
          clientID: 'ad6f70df0c70d2b715f9',
          clientSecret: '40384bee244c1e17dd7c37733d21e9ef669e969c',
          repo: 'Andyliwr.github.io',
          owner: 'Andyliwr',
          admin: ['Andyliwr'],
          id: md5(location.pathname),
          distractionFreeMode: 'true'
        })
        gitalk.render('gitalk_thread')
      }
    }
  </script>


